package com.bw.kf.all2211a.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Update
import com.bw.kf.mvvm.entity.History

@Dao
interface HisDao {

    @androidx.room.Insert(onConflict = androidx.room.OnConflictStrategy.REPLACE)
    fun insertHis(history: History)

    @androidx.room.Query("select * from history")
    fun queryHis():List<History>
    @Delete
    fun deleteHis(history: History)
    @Update
    fun updateHis(history: History)
}